package com.cisdi.info.mh.service.information;

import com.cisdi.info.simple.dto.base.PageDTO;
import com.cisdi.info.simple.dto.base.PageResultDTO;
import com.cisdi.info.mh.entity.information.Information;

import java.util.List;

public interface InformationService {

    public PageResultDTO findInformations(PageDTO pageDTO);

    public List<Information> findAllInformations();

    public List<Information> findInformationsWithIdNameByName(String informationName);

    public List<Information> findAllInformationsWithIdName();

    public Information findInformationsWithIdNameById(Long informationId);

    public Information findInformation(Long informationId);

    //所有外键的Name都以加载
    public Information findInformationWithForeignName(Long informationId);

    public Information saveInformation(Information information);

    public Information updateInformation(Information information);

    public void deleteInformation(Long informationId);
}
